<ui:composition template="/WEB-INF/templates/padraoAjaxStatus.xhtml" 
	  xmlns="http://www.w3.org/1999/xhtml"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:b="http://bootsfaces.net/ui"
      xmlns:p="http://primefaces.org/ui"
      xmlns:ui="http://java.sun.com/jsf/facelets">
      
	<ui:define name="conteudo">
		
		<b:container id="container_login">
			<b:column col-md="4" offset="4">
				<h:form id="formulario" styleClass="form-horizontal centralizar">
				<p:growl id="growl" showDetail="true" life="4000"/>
			
					<p:dialog id="dlg" widgetVar="dlg" resizable="false" visible="true" closable="false" styleClass="dlg centralizar-dlg" draggable="false" hideEffect="drop"> 
						
						<f:facet name="header">
							<h:graphicImage library="imagens" name="autenticacao_32.png" />
							<h:outputLabel value="#{msg.label_titulo_login}" styleClass="titulo_login"/>
						</f:facet>
						
						<h:panelGrid cellpadding="5" cellspacing="5">
							<h:outputLabel value="#{msg.label_usuario}:" for="usuario" styleClass="padding_right_1"/>
							<p:inputText value="#{autenticacaoMBean.login.usuario}" id="usuario" label="usuario" validator="loginValidator" maxlength="30" size="33"/>
							<h:outputLabel value="#{msg.label_senha}:" for="senha" styleClass="padding_right_1"/>
							<p:password value="#{autenticacaoMBean.login.senha}" id="senha" label="senha" validator="loginValidator" maxlength="6" size="33"/>
							<p:commandLink value="#{msg.label_esqueci_senha}"/>
						</h:panelGrid>
						
						<f:facet name="footer">
							<p:commandButton id="btLogin" value="#{msg.label_entrar}" update="growl" process="formulario" action="#{autenticacaoMBean.autenticar}" ajax="true" oncomplete="handlerLoginRequest(xhr, status, args)" style="margin-left:180px !important;" />
						</f:facet>
						
					</p:dialog>
					</h:form>
			</b:column>
		</b:container>
	</ui:define>
		
</ui:composition>